package src.com;

import java.util.Scanner;

public class Demo02 {
    public static int print(int m,int n) {
        System.out.print("区间所有奇数为");
        for(m+=1;m<n;m++){
            if(m%2!=0){
                System.out.print(m+"\t");
            }
        }
        return 0;
    }
    public static int main(String[] args) {

        Scanner in = new Scanner(System.in);
        System.out.println("请输入m");
        int num1 = in.nextInt();
        System.out.println("请输入n");
        int num2 = in.nextInt();

        print(num1,num2);
        return 0;
    }
}
